<div class="offerbanner clearfix obanner">  
<?php 
if(!empty($offer)):
    foreach($offer as $offer):
?> 
   <div class="box_offer clearfix"> 
   <span class="point_offer block"> <?php echo $offer->point_rate;?></span>  
        <a href="<?php echo base_url(),'offer/detail/',$offer->id;?>" target="_blank">
            <img src="<?php if($offer->img)echo $offer->img;else echo base_url().'upload/images/defalt_offer/defalt_offer.png';?>"/>
        </a>
        <div class="detail_offer left">
            <span class="title_offer block">
                <a href="<?php echo base_url(),'offer/detail/',$offer->id;?>" target="_blank">
                <?php echo $offer->title;?>
                </a>
            </span>            
            <span class="intro_offer block"><?php echo $offer->description;?></span>
        </div>
   </div>
<?php 
    endforeach;
else:
    echo 'No offer!!';
endif;
?>
<ul class="phantrang clearfix block left">
    <?php echo $this->pagination->create_links();?>
</ul>
</div><!-- dix offer banner-->